package com.yfp.client.mapper;

import com.yfp.client.domain.Position;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description 针对表【position(点位表)】的数据库操作Mapper
 * @createDate 2024-06-20 17:04:33
 * @Entity com.yfp.client.domain.Position
 */
public interface PositionMapper extends BaseMapper<Position> {

    /**
     * 根据机器id获取收益账户
     *
     * @param machineId
     * @return
     */
    Position listByMachineId(String machineId);


    /**
     * 查询点位
     * @param ids
     * @return
     */
    List<Position> findListByIdIn(@Param("ids") List<String> ids);

    Position positionIdAndLabel(String positionId);

    /**
     * 获取点位标签
     * @param lastPositionId
     * @return
     */
    Integer getLabel(String lastPositionId);
}




